#include "contactdialog.h"
#include <QLabel>
#include <QVBoxLayout>

ContactDialog::ContactDialog(QWidget* parent) : QDialog { parent, Qt::MSWindowsFixedSizeDialogHint }
{
    setWindowTitle(tr("Contact - YingCe"));

    QVBoxLayout* vl = new QVBoxLayout(this);
    vl->setContentsMargins(20, 20, 20, 20);
    vl->setSpacing(10);

    QLabel* text_label = new QLabel(
            tr("Wechat scan code to add customer service, consult products or ask for help。"),
            this);
    text_label->setObjectName("text");
    vl->addWidget(text_label);

    QLabel* qrcode_label = new QLabel(this);
    qrcode_label->setObjectName("qrcode");
    qrcode_label->setScaledContents(false);
    qrcode_label->setPixmap(QPixmap(":/images/contactme.png"));
    qrcode_label->setAlignment(Qt::AlignCenter);
    vl->addWidget(qrcode_label, 1);
}
